package cn.baker.delayqueue.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 延迟队列消息
 * @author yuanyu
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class DelayQueueMessage {
    /**
     *
     */
    private Long id;
    /**
     * 消息过期时间
     */
    private Long delayInMillis;
    /**
     * 消息
     */
    private String payload;
    /**
     * 队列唯一标识
     */
    private String queueCode;
}
